package cn.dzz.springcloud.component;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ArkD42
 * @file SpringCloud-ATGG-2020
 * @create 2020年08月24日 20:59
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult<EntityData> {
    private Integer code;
    private String message;
    private EntityData data;

    public JsonResult(Integer code, String message) {
        this(code, message, null);
    }
}
